package com.shanjupay.merchant.api;

import com.shanjupay.common.exception.BusinessException;
import com.shanjupay.merchant.api.dto.MerchantDTO;

/**
 * Created by Administrator.
 */
public interface MerchantService {

    /**
     * 按id查询商户
     *
     * @param id id
     * @return {@link MerchantDTO}
     */
    public MerchantDTO queryMerchantById(Long id);

    /**
     * 创建商户注册
     *
     * @param merchantDTO 商户dto
     * @return {@link MerchantDTO}
     */
    public MerchantDTO createMerchant(MerchantDTO merchantDTO) throws BusinessException;

    /**
     * 申请商户资质
     *
     * @param merchantId  商户id
     * @param merchantDTO 商户dto
     * @throws BusinessException 业务异常
     */
    public void applyMerchant(Long merchantId,MerchantDTO merchantDTO) throws BusinessException;
}
